SftTree/NET 2.0

Item Property, ItemCollectionClass Class

Softel vdm, Inc.

Returns the specified item or cell.

Syntax      ItemCollectionClass Class (Softelvdm.SftTreeNET)

VB   

Public Default ReadOnly Property Item( _
     ByVal ItemIndex As Integer, _
     ByVal ColIndex As Integer _
) As CellClass
Public Default ReadOnly Property Item( ByVal ItemIndex As Integer ) As ItemClass

C#   

public CellClass this[ int ItemIndex int ColIndex ] { get; }
public ItemClass this[ int ItemIndex ] { get; }

C++   

public: property CellClass^ this[ int , int ] {
        CellClass^ get(int ItemIndex , int ColIndex);
}
public: property ItemClass^ this[ int ] {
        ItemClass^ get(int ItemIndex);
}

ColIndex

Defines zero-based column index of the cell to retrieve from the item's cell collection. The valid range for ColIndex is 0 .. this[ItemIndex].Cells.Count-1.

ItemIndex

Defines the zero-based item index of the item to retrieve from the item collection. The valid range for ColIndex is 0 .. Count-1.

Property Value

The item or cell at the specified zero-based index.

Comments

The Item property returns the specified item or cell.

The Item property is the indexer of the ItemCollectionClass class, so languages supporting indexers can use array syntax, usually [] or (), to access the Item property.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com